﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AllNationPopup.Master" AutoEventWireup="true" CodeBehind="BlogManager.aspx.cs" Inherits="AllNations.UI.BlogManager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ANHeaderContent" runat="server">
    <script language="javascript">
        //This code is used to provide a reference to the radwindow "wrapper"
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well)
            return oWindow;
        }

        function CloseOnReload() {
            GetRadWindow().Close();
        }

        function RefreshParentPage(bGet) {
            if (bGet) {
                var loc = GetRadWindow().BrowserWindow.location;
                GetRadWindow().BrowserWindow.location = loc;
            }
            else
                GetRadWindow().BrowserWindow.location.reload();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ANPageHeader" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ANBodyContent" runat="server">
    <article class="node static-page" style="padding: 10px;">
        <asp:HiddenField ID="hidBlogId" runat="server" />
        <table cellpadding="0" cellspacing="0" border="0" style="width: 100%">
            <tr>
                <td style="padding: 4px;"><strong>Title:</strong></td>
                <td style="padding: 4px;"><asp:TextBox ID="txtBlogTitle" runat="server" Width="500px" MaxLength="512" CssClass="FieldR2" /></td>
            </tr>
            <tr>
                <td style="padding: 4px;"><strong>Subtitle:</strong></td>
                <td style="padding: 4px;"><asp:TextBox ID="txtBlogSubtitle" runat="server" Width="500px" MaxLength="512" CssClass="FieldR2" /></td>
            </tr>
            <tr>
                <td style="padding: 4px;"><strong>Content:</strong></td>
                <td style="padding: 4px;"><telerik:RadEditor ID="editorContent" runat="server" /></td>
            </tr>
            <tr>
                <td style="padding: 4px;">&nbsp;</td>
                <td style="padding: 4px;">
                    <asp:Button ID="btSaveBlog" runat="server" Text="Save" /><br />
                    <asp:Label ID="lblErrorMesg" runat="server" ForeColor="Red" />
                </td>
            </tr>
        </table>
    </article>
</asp:Content>
